package belf.migrate.api.exception;

import belf.migrate.core.exception.BelfRuntimeException;

public class DDLException extends BelfRuntimeException {
    private String ddl;

    public DDLException(String errorMessage, String ddl) {
        super(APIErrorCode.DDL_EXECUTE_ERROR, errorMessage);
        this.ddl = ddl;
    }

    public DDLException(String errorMessage, Throwable cause, String ddl) {
        super(APIErrorCode.DDL_EXECUTE_ERROR, errorMessage, cause);
        this.ddl = ddl;
    }

    public DDLException(Throwable cause, String ddl) {
        super(APIErrorCode.DDL_EXECUTE_ERROR, cause);
        this.ddl = ddl;
    }

    public String getDdl() {
        return ddl;
    }
}
